home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 21.zip
/
BS1 part 21
/
Professional Page v4.0 (1993)(Gold Disk)(Disk 1 of 4)[HD].7z
/
Professional Page v4.0 (1993)(Gold Disk)(Disk 1 of 4)[HD].adf
/
rexx.lzh
/
FontList.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1992-03-13
|
516b
|
28 lines
/*
Return the fontlist with the current font at the beginning of list
*/
parse arg cfont
fontlist = getclip(ppuser_fontlist)
if fontlist = '' then
do
fontlist = ppm_GetTypeFaceList()
fontlist = substr(fontlist, pos('0a'x, fontlist) + 1)
call SetClip(ppuser_fontlist, fontlist)
end
if cfont ~= '' then
do
stringpos = pos(cfont, fontlist)
if stringpos ~= 0 then
do
fontlist = delstr(fontlist, stringpos, length(cfont) + 1)
fontlist = cfont || '0a'x || fontlist
end
end
return(fontlist)